package cn.edu.Day09;

public class ShengChang implements Runnable{
    BaoShe baoShe;
    public ShengChang(BaoShe baoShe){
        this.baoShe = baoShe;
    }

    public void run() {
        for (int i = 0; i < 30; i++) {
            if(i%2==0){
                baoShe.set("张三","娱乐新闻");
            }else{
                baoShe.set("李四===","体育新闻");
            }
        }
    }
}
